package com.ciwong.epaper.modules.me.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.ciwong.epaper.modules.me.bean.BookmarkBean;
import com.ciwong.epaper.widget.ExpansionItemView;

import java.util.List;

/**
 * Created by keepon on 2018/8/7.
 */
public class NewBookDeskExpansionAdapter extends BaseNewBookItemInAdapter<BookmarkBean> {

    public NewBookDeskExpansionAdapter(Context context, List<BookmarkBean> datas) {
        super(context, datas);
    }

    @Override
    protected ViewHolder creatViewHolde(ViewGroup parent, int viewType) {
        return new ViewHolder(new ExpansionItemView(mContext));
    }

    @Override
    public void bindData(View itemView, int position, BookmarkBean bookmarkBean) {
        ExpansionItemView expansionItemView = (ExpansionItemView) itemView;
        expansionItemView.bindData(bookmarkBean);
    }
}
